﻿using Adnc.Infra.EventBus;
using System;
using System.Collections.Generic;

namespace Adnc.Shared.Events
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class UserGZHMessagePushEvent : BaseEvent<UserGZHMessagePushEvent.EventData>
    {
        public UserGZHMessagePushEvent()
        {
        }

        public UserGZHMessagePushEvent(long id, EventData eventData, string eventSource) : base(id, eventData, eventSource)
        {
        }

        public class EventData
        {
            /// <summary>
            /// 用户ID
            /// </summary>
            public long UserId { get; set; }

            /// <summary>
            /// 模板ID
            /// </summary>
            public string TemplateId { get; set; }

            /// <summary>
            /// 小程序路径
            /// </summary>
            public string Pagepath { get; set; }

            /// <summary>
            /// 消息类容
            /// </summary>
            public object Data { get; set; }
        }

        public class DataItem
        {
            /// <summary>
            /// 获取或设置消息内容文本。
            /// </summary>
            public string Value { get; set; } = string.Empty;

            /// <summary>
            /// 获取或设置消息字体颜色（格式：#RRGGBB）。
            /// </summary>
            public string Color { get; set; } = String.Empty;
        }
    }
}
